/*
 * MyPassMessage.java
 *
 * Created on 02 September 2006, 15:27
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package jhub.text;

import java.text.MessageFormat;
import java.text.ParseException;
import jhub.DCProtocol;

/**
 *
 * @author root
 */
public class MyPassMessage extends DCRawCommand {
    private String passwd;
        
    public MyPassMessage(String raw) throws ParseException{
    	super(raw);
    	parse();
    }
    
    private void parse() throws ParseException{
        Object[] o = new MessageFormat(DCProtocol.MYPASS_FORMAT).parse(command.toString());
        passwd = o[0].toString();
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }
}
